/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.netconsole.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Romain
 */
public class SystemInformation implements Serializable {
    private static final long serialVersionUID = 20151213;
    
    float cpuUsage;
    float memUsage;
    List<Processus> listProcess = new ArrayList<>();


    public SystemInformation() {
    }

    public float getCpuUsage() {
        return cpuUsage;
    }

    public float getMemUsage() {
        return memUsage;
    }

    public void setCpuUsage(float cpuUsage) {
        this.cpuUsage = cpuUsage;
    }

    public void setMemUsage(float memUsage) {
        this.memUsage = memUsage;
    }
    
    public List<Processus> getListProcess(){
        return listProcess;
    }
    
    public void setListProcess(List<Processus> listProcess){
        this.listProcess = listProcess;
    }

    @Override
    public String toString() {
        return "SystemInformationBean{" + "cpuUsage=" + cpuUsage + ", memUsage=" + memUsage + '}';
    }

    public SystemInformation(float cpuUsage, float memUsage, List<Processus> listProcess) {
        this.cpuUsage = cpuUsage;
        this.memUsage = memUsage;
        this.listProcess = listProcess;
    }
    
}
